❌ Player Disable
Now, when we are in the examine state, we don't want our player to interfere. Here is how you can disable your player while in the examine state.
To disable any block of code use this syntax: ⇩
if (!ExamineManager.instance.ReadState_isOccupied)
{
//Code that you want to disable.
}
Example:
I used it to disable my player while in examine state.

Now, when we enter the examine state, that block of code gets disabled and stays disabled till we exit the examine state.
You can disable code by using this method as well..
We are going to do this by using ExamineManager events.
note
Recommended disabling any code that interferes while in examine state.